<?php

/**
 * 开发者帮助中心
 * @copyright (c) 2013, Mr.Wang
 * 
 */
class IndexAction extends AdminAction {

    function _initialize() {
        parent::_initialize();
    }

    public function index() {
        $this->assign("data", D("File")->file_list());
        $this->display();
    }

    function codeShow() {
        $file     = trim($_GET['file']);
        $temptext = Input::forTarea(file_get_contents(APP_PATH . "Modules/Helper/Tpl/Show/{$file}.php"));
        $this->assign("temptext", $temptext);
        $this->display();
    }

}

?>
